import os
from setuptools import find_packages
from setuptools import setup

folder = os.path.dirname(__file__)
version_path = os.path.join(folder, "src", "real_agent", "version.py")

__version__ = None
with open(version_path) as f:
    exec(f.read(), globals())

req_path = os.path.join(folder, "requirements.txt")
install_requires = []
if os.path.exists(req_path):
    with open(req_path) as fp:
        install_requires = [line.strip() for line in fp]

readme_path = os.path.join(folder, "README.md")
readme_contents = ""
if os.path.exists(readme_path):
    with open(readme_path) as fp:
        readme_contents = fp.read().strip()

setup(
    name="real_agent",
    version=__version__,
    description="real_agent: A Python Project",
    author="allwefantasy",
    long_description=readme_contents,
    long_description_content_type="text/markdown",
    package_dir={"": "src"},
    packages=find_packages("src"),    
    package_data={
        "real_agent": ["web/**/*"],
    },
    entry_points={
        'console_scripts': [
            'real_agent.serve = real_agent.proxy:main',
        ],
    },
    install_requires=install_requires + ['fastapi', 'uvicorn', 'httpx', 'aiofiles'],
    classifiers=[        
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Programming Language :: Python :: 3.11",
    ],
    requires_python=">=3.9",
)
from setuptools import setup, find_packages

setup(
    name="real_agent",
    version="0.1.0",
    packages=find_packages("src"),
    package_dir={"": "src"},
    install_requires=[
        "byzerllm",
        "pydantic>=2.0.0",
    ],
    python_requires=">=3.8",
)